﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PurchaseOrder.aspx.cs"
    Inherits="WMS6.Web.OrderManagement.PurchaseOrder" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>PurchaseOrder</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newPurchaseOrder()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "PurchaseOrder.aspx?from="+escape(from);
            return false;
        }
        
        //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtOwnerID_TextChanged","");
            }
        }
        
        //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
                   document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtVendorID_TextChanged","");
            }
        }
        
        //弹出窗口选择承运商
        function selectCarrier()
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrier','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCarrier").focus();
                document.getElementById("txtCarrier").value = rtnValue;
                //__doPostBack("txtVendorID_TextChanged","");
            }
        }
        
        //弹出窗口选择承运商
        function selectPlaceOfDischarge()
        {
            var rtnValue = popModalWindow('../Configuration/LocAddrQuery.aspx?action=txtPlaceOfDischarge&TYPE=PO','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtPlaceOfDischarge").focus();
                document.getElementById("txtPlaceOfDischarge").value = rtnValue;
                //__doPostBack("txtVendorID_TextChanged","");
            }
        }
        
         function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
        }

        //显示 报表 DIV
        function showReport() {
            var pos = getElementPos("htmlbtnReport");
            document.getElementById("reportDiv").style.top = pos.y + 17;
            document.getElementById("reportDiv").style.left = pos.x;
            document.getElementById("hiddenReportFlag").value = '1';
        }
		
		function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
        }

        //隐藏 报表 DIV
        function hiddenReportDiv() {
            var flag = document.getElementById("hiddenReportFlag").value
            if (flag == "1") {
                document.getElementById("reportDiv").style.display = "block";
                document.getElementById("hiddenReportFlag").value = '0';
            }
            else {
                document.getElementById("reportDiv").style.display = "none";
            }
        }


        //弹出 打印 采购订单 的窗口
		function popPrintPurchaseOrder() 
		{
		    var PoID = document.getElementById("txtPoID").value;
		    var OwnerID= document.getElementById("txtOwnerID").value;
		    window.open('../Common/PrintReport.aspx?rtype=printPurchaseOrder&PoID=' + escape(PoID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
		}
		
		//弹出 打印 采购订单 的窗口
		function popPrintPurchaseOrderEN() 
		{
		    var PoID = document.getElementById("txtPoID").value;
		    var OwnerID= document.getElementById("txtOwnerID").value;
		    window.open('../Common/PrintReport.aspx?rtype=printPurchaseOrderEN&PoID=' + escape(PoID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
		}
		
		function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            else  if(code == "C010")
            {
                if(confirm('<%=GetGlobalMsgResource("C010") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            else  if(code == "F3100_001")
            {
                if(confirm('<%=GetGlobalMsgResource("F3100_001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
        		   //导入
		function DataImport() 
		{
             var rtnValue = popModalWindow('../Common/ImporData.aspx?action=PURCHASEORDERDETAIL&OrderID=' + escape(document.getElementById('txtPoID').value) + '&OwnerID=' + escape(document.getElementById('txtOwnerID').value), 'dialogWidth=520px;dialogHeight=300px;center=yes;resizable=yes;status=no;')
		   if(rtnValue != "") 
		   {	   
		      window.location.href = "PurchaseOrder.aspx?from=list&ID=" + escape(document.getElementById('txtPoID').value) + "&detail=6";
		   }
               
		}
		
		
		 function ImporDataDivClose()
        {
           window.location.href = "../OrderManagement/PurchaseOrder.aspx?from=list&ID=" + escape(document.getElementById('txtPoID').value) + "&detail=6";
        }
        
        function dd()
        {
          alert("1");
        }
		
    </script>

</head>
<body onbeforeunload="SavePageValue('btnSave','hdnPageQty');">
    <form id="F3011" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="采购订单" meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            Enabled="False" CausesValidation="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            AccessKey="n" OnClientClick="newPurchaseOrder();return false;" Enabled="False" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" OnClientClick="SethdnPageQty('hdnPageQty');" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            Enabled="False" AccessKey="d" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            Enabled="False" AccessKey="c" OnClick="btnCopy_Click" />
                    </td>
                    <td>
                        <input id="btnAction" type="button" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" runat="server" onclick="showAction();" />
                        <asp:Button ID="btnInputPO" runat="server" Text="" Style="display: none" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                            class="button" onclick="showReport();" />
                    </td>
                </tr>
            </table>
        </div>
        <%--<asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>--%>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,6)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,6);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">&nbsp;货主&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,6);"
                id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">&nbsp;供应商&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL4">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,6);"
                id="divM4">
                <asp:Label ID="one4" CssClass="navigationlabel" runat="server" meta:resourcekey="one4">&nbsp;运输&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR4">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL5">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',5,6);"
                id="divM5">
                <asp:Label ID="one5" CssClass="navigationlabel" runat="server" meta:resourcekey="one5">自定义字段</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR5">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL6">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',6,6);"
                id="divM6">
                <asp:Label ID="one6" CssClass="navigationlabel" runat="server" meta:resourcekey="one6">采购订单明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR6">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblPoID" runat="server" CssClass="label" Text="采购订单号" meta:resourcekey="lblPoID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblExternalPoID" runat="server" CssClass="label" Text="外部订单号" meta:resourcekey="lblExternalPoID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPoDate" runat="server" CssClass="label" Text="采购订单日期" meta:resourcekey="lblPoDate"></asp:Label><font
                                color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" AutoPostBack="True" OnTextChanged="txtPoID_TextChanged"
                                meta:resourcekey="txtPoID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtExternalPoID" CssClass="textbox" runat="server" meta:resourcekey="txtExternalPoID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtPoDate" CssClass="textbox" runat="server" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                meta:resourcekey="txtPoDate"></asp:TextBox><img src="../Images/calendar.gif" class="img"
                                    alt="请选择日期" onclick="setday(this,txtPoDate)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" meta:resourcekey="lblOwnerID"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPoGroup" runat="server" CssClass="label" Text="订单分组" meta:resourcekey="lblPoGroup"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblExternalPoID2" runat="server" CssClass="label" Text="外部订单号2" meta:resourcekey="lblExternalPoID2"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblClosedDate" runat="server" CssClass="label" Text="关闭日期" meta:resourcekey="lblClosedDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" AutoPostBack="True"
                                OnTextChanged="txtOwnerID_TextChanged" meta:resourcekey="txtOwnerID"></asp:TextBox><img
                                    src="../Images/icon_find.gif" alt="select one item" id="imgOwnerID" runat="server"
                                    class="img" onclick="selectOwner();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtPoGroup" runat="server" CssClass="textbox" Enabled="False" meta:resourcekey="txtPoGroup"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtExternalPoID2" CssClass="textbox" runat="server" meta:resourcekey="txtExternalPoID2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtClosedDate" CssClass="textbox" runat="server" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                Enabled="False" meta:resourcekey="txtClosedDate"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="供应商代码" meta:resourcekey="lblVendorID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPoType" runat="server" CssClass="label" Text="订单类型" meta:resourcekey="lblPoType"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOtherRef" runat="server" CssClass="label" Text="其他参考信息" meta:resourcekey="lblOtherRef"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblRequestDeliveryDate" runat="server" CssClass="label" Text="要求送货日期" meta:resourcekey="lblRequestDeliveryDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" AutoPostBack="True"
                                OnTextChanged="txtVendorID_TextChanged"></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" class="img" onclick="selectVendor();" />
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlPoType" runat="server" CssClass="mediumselectbox">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOtherRef" runat="server" CssClass="textbox"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtRequestDeliveryDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"></asp:TextBox><img
                                src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtRequestDeliveryDate)" />
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="360px" colspan="2">
                            <asp:Label ID="lblOwnerName" runat="server" CssClass="label" Text="货主名称" meta:resourcekey="lblOwnerName"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_City" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblOwner_City"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Contact" runat="server" CssClass="label" Text="联系人" meta:resourcekey="lblOwner_Contact"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2">
                            <asp:TextBox ID="txtOwnerName" runat="server" CssClass="largetextbox" meta:resourcekey="txtOwnerName"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_City" runat="server" CssClass="textbox" meta:resourcekey="txtOwner_City"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Contact" runat="server" CssClass="textbox" meta:resourcekey="txtOwner_Contact"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Ref" runat="server" CssClass="label" Text="货主参考信息" meta:resourcekey="lblOwner_Ref"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Vat" runat="server" CssClass="label" Text="VAT" meta:resourcekey="lblOwner_Vat"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Prov" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblOwner_Prov"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Fax" runat="server" CssClass="label" Text="传真" meta:resourcekey="lblOwner_Fax"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Ref" runat="server" CssClass="textbox" meta:resourcekey="txtOwner_Ref"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Vat" runat="server" CssClass="textbox" meta:resourcekey="txtOwner_Vat"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Porv" runat="server" CssClass="textbox" meta:resourcekey="txtOwner_Porv"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Fax" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsFax(this,'lblMsg')"
                                meta:resourcekey="txtOwner_Fax"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2">
                            <asp:Label ID="lblOwner_Address" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblOwner_Address"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Zip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblOwner_Zip"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Phone" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblOwner_Phone"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2" rowspan="3">
                            <asp:TextBox ID="txtOwner_Address" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtOwner_Address"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Zip" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPost(this,'lblMsg')"
                                meta:resourcekey="txtOwner_Zip"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Phone" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPhone(this,'lblMsg')"
                                meta:resourcekey="txtOwner_Phone"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Country" runat="server" CssClass="label" Text="国别" meta:resourcekey="lblOwner_Country"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwner_Email" runat="server" CssClass="label" Text="Email" meta:resourcekey="lblOwner_Email"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Country" runat="server" CssClass="textbox" meta:resourcekey="txtOwner_Country"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwner_Email" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsMail(this,'lblMsg')"
                                meta:resourcekey="txtOwner_Email"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_3" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="360px" colspan="2">
                            <asp:Label ID="lblVendorName" runat="server" CssClass="label" Text="供应商名称" meta:resourcekey="lblVendorName"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_City" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblVendor_City"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Contact" runat="server" CssClass="label" Text="联系人" meta:resourcekey="lblVendor_Contact"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2">
                            <asp:TextBox ID="txtVendorName" runat="server" CssClass="largetextbox" meta:resourcekey="txtVendorName"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_City" runat="server" CssClass="textbox" meta:resourcekey="txtVendor_City"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Contact" runat="server" CssClass="textbox" meta:resourcekey="txtVendor_Contact"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Ref" runat="server" CssClass="label" Text="供应商参考信息" meta:resourcekey="lblVendor_Ref"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Vat" runat="server" CssClass="label" Text="VAT" meta:resourcekey="lblVendor_Vat"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Prov" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblVendor_Prov"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Fax" runat="server" CssClass="label" Text="传真" meta:resourcekey="lblVendor_Fax"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Ref" runat="server" CssClass="textbox" meta:resourcekey="txtVendor_Ref"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Vat" runat="server" CssClass="textbox" meta:resourcekey="txtVendor_Vat"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Porv" runat="server" CssClass="textbox" meta:resourcekey="txtVendor_Porv"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Fax" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsFax(this,'lblMsg')"
                                meta:resourcekey="txtVendor_Fax"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2">
                            <asp:Label ID="lblVendor_Address" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblVendor_Address"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Zip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblVendor_Zip"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Phone" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblVendor_Phone"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2" rowspan="3">
                            <asp:TextBox ID="txtVendor_Address" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtVendor_Address"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Zip" runat="server" CssClass="textbox" meta:resourcekey="txtVendor_Zip"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Phone" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPhone(this,'lblMsg')"
                                meta:resourcekey="txtVendor_Phone"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Country" runat="server" CssClass="label" Text="国别" meta:resourcekey="lblVendor_Country"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVendor_Email" runat="server" CssClass="label" Text="Email" meta:resourcekey="lblVendor_Email"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Country" runat="server" CssClass="textbox" meta:resourcekey="txtVendor_Country"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVendor_Email" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsMail(this,'lblMsg')"
                                meta:resourcekey="txtVendor_Email"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_4" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblCarrier" runat="server" CssClass="label" Text="承运商名称" meta:resourcekey="lblCarrier"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblSrcCountry" runat="server" CssClass="label" Text="原产国" meta:resourcekey="lblSrcCountry"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblApportionRule" runat="server" CssClass="label" Text="分配规则" meta:resourcekey="lblApportionRule"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVessel" runat="server" CssClass="label" Text="船名" meta:resourcekey="lblVessel"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrier" runat="server" CssClass="textbox" meta:resourcekey="txtCarrier"></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectCarrier();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtSrcCountry" runat="server" CssClass="textbox" meta:resourcekey="txtSrcCountry"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlApportionRule" CssClass="mediumselectbox" runat="server"
                                meta:resourcekey="ddlApportionRule">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVessel" CssClass="textbox" runat="server" meta:resourcekey="txtVessel"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblIncoTerms" runat="server" CssClass="label" Text="贸易条款" meta:resourcekey="lblIncoTerms"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDesCountry" runat="server" CssClass="label" Text="目的国" meta:resourcekey="lblDesCountry"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblWareHouseID" runat="server" CssClass="label" Text="收货仓库"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVoyge" runat="server" CssClass="label" Text="航次" meta:resourcekey="lblVoyge"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlIncoTerms" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlIncoTerms">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDesCountry" runat="server" CssClass="textbox" meta:resourcekey="txtDesCountry"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlWareHouseID" runat="server" CssClass="mediumselectbox" AutoPostBack="True"
                                Visible="true">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVoyge" runat="server" CssClass="textbox" meta:resourcekey="txtVoyge"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblTransMode" runat="server" CssClass="label" Text="运输方式" meta:resourcekey="lblTransMode"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPlaceOfLoading" runat="server" CssClass="label" Text="装货地点" meta:resourcekey="lblPlaceOfLoading"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblSealNo" runat="server" CssClass="label" Text="签封号" meta:resourcekey="lblSealNo"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlTransMode" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlTransMode">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtPlaceOfLoading" runat="server" CssClass="textbox" meta:resourcekey="txtPlaceOfLoading"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtSealNo" runat="server" CssClass="textbox" meta:resourcekey="txtSealNo"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblPaymentTerm" runat="server" CssClass="label" Text="付款方式" meta:resourcekey="lblPaymentTerm"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPlaceOfDelivery" runat="server" CssClass="label" Text="到货地点" meta:resourcekey="lblPlaceOfDelivery"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVesselDate" runat="server" CssClass="label" Text="装货日期" meta:resourcekey="lblVesselDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlPaymentTerm" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlPaymentTerm">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtPlaceOfDelivery" runat="server" CssClass="textbox" meta:resourcekey="txtPlaceOfDelivery"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVesselDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                meta:resourcekey="txtVesselDate"></asp:TextBox><img src="../Images/calendar.gif"
                                    class="img" alt="请选择日期" onclick="setday(this,txtVesselDate)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2">
                            <asp:Label ID="lblPlaceOfDischarge" runat="server" CssClass="label" Text="送货地点" meta:resourcekey="lblPlaceOfDischarge"></asp:Label><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectPlaceOfDischarge();" />
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="360px" colspan="2" rowspan="3">
                            <asp:TextBox ID="txtPlaceOfDischarge" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                Wrap="true" meta:resourcekey="txtPlaceOfDischarge"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_5" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段01" meta:resourcekey="lblUdf1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段06" meta:resourcekey="lblUdf6"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCreatedBy" runat="server" CssClass="label" Text="制单人" meta:resourcekey="lblCreatedBy"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCreatedDate" runat="server" CssClass="label" Text="制单日期" meta:resourcekey="lblCreatedDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" meta:resourcekey="txtUdf1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" meta:resourcekey="txtUdf6"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCreatedBy" runat="server" Enabled="False" CssClass="textbox"
                                meta:resourcekey="txtCreatedBy"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCreatedDate" runat="server" Enabled="False" CssClass="textbox"
                                meta:resourcekey="txtCreatedDate"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段02" meta:resourcekey="lblUdf2"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段07" meta:resourcekey="lblUdf7"></asp:Label>
                        </td>
                        <td width="360px" colspan="2">
                            <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox>
                        </td>
                        <td width="360px" colspan="2" rowspan="3">
                            <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtRemark"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" meta:resourcekey="lblUdf3"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" meta:resourcekey="lblUdf8"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" meta:resourcekey="txtUdf3"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" meta:resourcekey="txtUdf8"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" meta:resourcekey="lblUdf04"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" meta:resourcekey="lblUdf09"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" meta:resourcekey="txtUdf9"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" meta:resourcekey="lblUdf5"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" meta:resourcekey="lblUdf10"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" meta:resourcekey="txtUdf5"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" meta:resourcekey="txtUdf10"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td colspan="4">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_6" style="display: none; overflow-x: auto; overflow-y: hidden;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                            OnClick="btnAddDetail_Click" OnClientClick="javascript:if(document.getElementById('hdnpoID').value == ''){ SethdnPageQty('hdnPageQty'); if(confirmMsg('F3100_001')) return true; else return false;}" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDeleteDetail%>"
                                            OnClientClick="javascript:if(confirmMsg('C010')) return true; else return false;"
                                            OnClick="btnDeleteDetail_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnImportData" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnImportData%>"
                                            OnClientClick="javascript:if(document.getElementById('hdnpoID').value == ''){  SethdnPageQty('hdnPageQty'); if(confirmMsg('F3100_001')) return true; else return false; }"
                                            OnClick="btnImportData_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:GridView ID="gvPurchaseOrderDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                    CssClass="gridview" DataKeyNames="poID,lineID,Status" Width="1400px" OnInit="gvPurchaseOrderDetail_Init"
                                    AllowPaging="True" OnPageIndexChanging="gvPurchaseOrderDetail_PageIndexChanging"
                                    OnRowDataBound="gvPurchaseOrderDetail_RowDataBound" OnSorting="gvPurchaseOrderDetail_Sorting"
                                    meta:resourcekey="gvPurchaseOrderDetail">
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <PagerStyle CssClass="GridViewPageStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                            <ItemStyle CssClass="GridViewRowWidth_40" />
                                        </asp:BoundField>
                                        <asp:TemplateField meta:resourcekey="TemplateField">
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvPurchaseOrderDetail');"
                                                    meta:resourcekey="CheckBox1" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvPurchaseOrderDetail');"
                                                    meta:resourcekey="CheckBox2" />
                                            </FooterTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                        </asp:TemplateField>
                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource2">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# FormatUrl("~/OrderManagement/PurchaseOrderDetail.aspx?ID={0}&lineID={1}",Eval("poID").ToString(),Eval("lineID").ToString()) %>'
                                                    Target="_self" CssClass="hyperlink" meta:resourcekey="HyperLink1"><img src="../Images/icon_edit.gif" class="img" style="border:none 0px blue;"/></asp:HyperLink>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SkuID"
                                            meta:resourcekey="SkuID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDesc" meta:resourcekey="SkuDesc">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SkuDesc").ToString() %>'
                                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="货品型号" HeaderText="货品型号" SortExpression="SkuStyle">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuStyle" runat="server" Text='<%# Eval("SkuStyle").ToString() %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="PackID" HeaderText="包装代码" FooterText="包装代码" SortExpression="PackID"
                                            meta:resourcekey="PackID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="UomID" HeaderText="单位" FooterText="单位" SortExpression="UomID"
                                            meta:resourcekey="UomID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" SortExpression="StatusD"
                                            meta:resourcekey="StatusD">
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="订购量" HeaderText="订购量" SortExpression="ORDEREDQTY"
                                            meta:resourcekey="ORDEREDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblORDEREDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ORDEREDQTY").ToString()) %>'
                                                    meta:resourcekey="lblORDEREDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="接收量" HeaderText="接收量" SortExpression="RECEIVEDQTY"
                                            meta:resourcekey="RECEIVEDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblRECEIVEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("RECEIVEDQTY").ToString()) %>'
                                                    meta:resourcekey="lblRECEIVEDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="拒绝量" HeaderText="拒绝量" SortExpression="REJECTEDQTY"
                                            meta:resourcekey="REJECTEDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblREJECTEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("REJECTEDQTY").ToString()) %>'
                                                    meta:resourcekey="lblREJECTEDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="单价" HeaderText="单价" SortExpression="UnitPrice" meta:resourcekey="UnitPrice">
                                            <ItemTemplate>
                                                <asp:Label ID="lblUnitPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("UnitPrice").ToString()) %>'
                                                    meta:resourcekey="lblUnitPrice"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="金额" HeaderText="金额" SortExpression="TotalPrice" meta:resourcekey="TotalPrice">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTotalPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("TotalPrice").ToString()) %>'
                                                    meta:resourcekey="lblTotalPrice"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;
            border: none 0 black">
            <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnClose" runat="server" visible="False">
                        <asp:LinkButton ID="lnkbtnClose" runat="server" Text="<%$Resources:ButtonResource,lnkbtnClose%>"
                            OnClientClick="blockScreen();" OnClick="lnkbtnClose_Click"></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
            <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnPrintPO" runat="server" visible="false">
                        <asp:LinkButton ID="lnkbtnPrintPO" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintPO%>"
                            OnClientClick="popPrintPurchaseOrder();"></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnPrintPOEN" runat="server" visible="false">
                        <asp:LinkButton ID="lnkbtnPrintPOEN" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintPOEN%>" 
                            OnClientClick="popPrintPurchaseOrderEN();"></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <input type="hidden" id="hiddenFlag" />
        <input type="hidden" id="hiddenReportFlag" />
        <input type="hidden" id="hdnLineID" runat="server" />
        <input id="hdnpoID" runat="server" type="hidden" />
        <input id="hdnFlag" runat="server" type="hidden" value="0" />
        <asp:HiddenField ID="hdnServerPoID" runat="server" OnValueChanged="hdnServerPoID_ValueChanged" />
        <input id="hdnPageQty" runat="server" type="hidden" value="0" />
        <input id="hdnPageType" runat="server" type="hidden" value="0" />
        <%--</ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
                </Triggers>
        </asp:UpdatePanel>    --%>
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
        <input id="hdnCopy" runat="server" type="hidden" />
        <input id="hdnIsRequiredExternalID" runat="server" type="hidden" />
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenDiv();
			hiddenReportDiv();
			hiddenCalendarDiv();
		//-->
</script>

